package org.openfidias.jdbase.lang;

/**
 *
 * @author atila
 */
public final class Choose {

   private Choose() {}

   public static boolean is(String option, String choice) {
      return option.equalsIgnoreCase(choice);
   }

   public static boolean isAny(String[] options, String choice) {
      for (int i = 0; i < options.length; i++) {
         String string = options[i];
         if (string.equalsIgnoreCase(choice)) {
            return true;
         }
      }
      return false;
   }
}
